<nav class="ui inverted attach segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">笔记库</h2>
            <a href="/index" class="m-item item m-mobile-hide"><i class="mini icon"></i>首页</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="mini idea icon"></i>分类</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="mini tags icon"></i>标签</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="mini clone icon"></i>归档</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="mini info icon"></i>关于我</a>
            <div class="right item m-mobile-hide">
                <div class="ui icon inverted transparent input">
                    <input type="text" placeholder="搜索内容"/>
                    <i class="search link icon"></i>
                </div>
            </div>
            <div class="right m-item m-mobile-hide menu">
                <div class="ui dropdown item">
                    <#if user??>
                        <div class="text">
                            <#if user.img??>
                                <img class="ui avatar image" src="${user.img}">
                                <#else>
                            </#if>
                            ${user.username}
                        </div>
                        <i class="dropdown icon"></i>
                        <div class="menu">
                            <a href="/noteAdd" class="item">添加笔记</a>
                            <a href="/list" class="item">笔记列表</a>
                            <a href="/center" class="item">个人中心</a>
                            <a href="/user/logout" class="item">注销</a>
                        </div>
                    <#else>
                        <div class="text">
                            尚未登录
                        </div>
                        <i class="dropdown icon"></i>
                        <div class="menu">
                            <a href="/login" class="item">登录</a>
                            <a href="#" class="item">注册<p style="color: red"> (!未开放)</p></a>
                        </div>
                    </#if>

                </div>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>